package com.lipi.mall.order.dao;

import com.lipi.mall.order.entity.OrderEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 订单
 * 
 * @author hecy
 * @email kuanih200@163.com
 * @date 2021-06-14 16:09:46
 */
@Mapper
public interface OrderDao extends BaseMapper<OrderEntity> {

    /**
     * 更新订单状态
     * @param outTradeNo  订单号
     * @param code        状态码
     */
    void updateOrderStatus(@Param("outTradeNo") String outTradeNo, @Param("code") Integer code);
}
